package br.com.atid.model.entity
{
	import br.com.atid.model.constants.NetElementsTypes;
	import br.com.atid.model.graphicalNetElements.IGraphicalNetElement;

	public class Arc extends NetElement
	{
		private var _destination:IGraphicalNetElement;
		private var _source:IGraphicalNetElement;
		
		public function Arc(id:String, name:String, source:IGraphicalNetElement, destination:IGraphicalNetElement)
		{
			this._source=source;
			this._destination=destination;
			super(id, name, NetElementsTypes._ARC);
		}

		public function get destination():IGraphicalNetElement
		{
			return _destination;
		}

		public function set destination(value:IGraphicalNetElement):void
		{
			_destination=value;
		}

		public function get source():IGraphicalNetElement
		{
			return _source;
		}
	}
}
